package com.fuint.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fuint.framework.pagination.PaginationRequest;
import com.fuint.framework.pagination.PaginationResponse;
import com.fuint.repository.model.MtDeviceRecord;
import com.fuint.framework.exception.BusinessCheckException;
import java.util.List;
import java.util.Map;

/**
 * 设备记录表业务接口
 *
 * Created by whileu
 * CopyRight https://www.fuint.cn
 */
public interface DeviceRecordService extends IService<MtDeviceRecord> {

    /**
     * 分页查询列表
     *
     * @param paginationRequest
     * @return
     */
    PaginationResponse<MtDeviceRecord> queryDeviceRecordListByPagination(PaginationRequest paginationRequest) throws BusinessCheckException;

    /**
     * 添加设备记录表
     *
     * @param  mtDeviceRecord
     * @throws BusinessCheckException
     * @return
     */
    MtDeviceRecord addDeviceRecord(MtDeviceRecord mtDeviceRecord) throws BusinessCheckException;

    /**
     * 根据ID获取设备记录表信息
     *
     * @param id ID
     * @throws BusinessCheckException
     * @return
     */
    MtDeviceRecord queryDeviceRecordById(Integer id) throws BusinessCheckException;

    /**
     * 根据ID删除设备记录表
     *
     * @param id ID
     * @param operator 操作人
     * @throws BusinessCheckException
     * @return
     */
    void deleteDeviceRecord(Integer id, String operator) throws BusinessCheckException;

    /**
     * 更新设备记录表
     * @param  mtDeviceRecord
     * @throws BusinessCheckException
     * @return
     * */
    MtDeviceRecord updateDeviceRecord(MtDeviceRecord mtDeviceRecord) throws BusinessCheckException;

    /**
     * 根据条件搜索设备记录表
     *
     * @param params 查询参数
     * @throws BusinessCheckException
     * @return
     * */
    List<MtDeviceRecord> queryDeviceRecordListByParams(Map<String, Object> params) throws BusinessCheckException;
}
